<template>
  <!-- <div id="nav">
    <router-link to="/">Home</router-link> |
    <router-link to="/about">About</router-link>
  </div>
  <router-view/> -->
  <div id="app">
    <nav>
      <router-link to="/Vue">vue.js</router-link>
      <router-link to="/Html">vue.js</router-link>
      <router-link to="/Css">vue.js</router-link>
      <router-link to="/Js">vue.js</router-link>
    </nav>\
    <p>选择了 <b> <router-view /></b></p>
  </div>

</template>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
}

#app {
  width: 632px;
  margin: 0 auto;
  text-align: center;
}

nav {
  display: inline-block;
  margin: 60px auto 45px;
  background-color: #64B448;
  box-shadow: 0 1px 1px #ccc;
  border-radius: 2px;

 
}

nav a {
  display: inline-block;
  padding: 18px 30px;
  color: #fff !important;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none !important;
  line-height: 1;
  background-color: transparent;
  -webkit-transition: background-color 0.25s;
  -moz-transition: background-color 0.25s;
  transition: background-color 0.25s;
  cursor: pointer;
}

b {
  display: inline-block;
  padding: 5px 10px;
  background-color: #64B448;
  border-radius: 2px;
  font-size: 18px;
  color: #fff;
}

// .show {
//   background-color: #e35885;
// }
.router-link-active {
  background-color: #e35885;
}
</style>
